<?php
session_start();
?>
<!DOCTYPE HTML>
<html>

<head>
<title>Login</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="js/mootools.js"></script>
		<script type="text/javascript" src="js/imageMenu.js"></script>
		<script type="text/javascript" src="js/ajax.js"></script>
		<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" />
		<link href="css/imageMenu.css" rel="stylesheet" type="text/css" />
</head>
<body >
<?php 
include 'encabezado.php';
require('parametros/bd.php');
function sanitize($data){
$data=trim($data);
$data=htmlspecialchars($data);
return $data;
}
$signature= sanitize($_GET['signature']);
if ($signature === $_SESSION['signature']) {
//authenticated user request
$_SESSION['logged_in'] = False;
session_destroy();   
session_unset();     
echo 'El logout se ha realizado exitosamente, le esperamos pronto.<br /><br />';
?>
===============<br />
Navigation Menu<br />
===============<br />
<a href="login.php">Inicio</a><br />
<a href="about.php">Acerca De</a><br />
<?php
} else {
//unauthorized logout
header(sprintf("Location: %s", $forbidden_url));	
exit;  
}
include 'pie.php';
?>